package com.cleaningcloud.cld.domain;

import java.util.Date;

import com.cleaningcloud.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cleaningcloud.common.core.annotation.Excel;

/**
 * 排休管理对象 cld_restbreaks
 * 
 * @author cleaningcloud
 * @date 2024-11-08
 */
public class CldRestbreaks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 排休ID */
    private Long restbreakId;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long projectId;

    /** 年份 */
    @Excel(name = "年份")
    private Long restbreakYear;

    /** 月份 */
    @Excel(name = "月份")
    private Long restbreakMonth;

    /** 是否确认(0否1是) */
    @Excel(name = "是否确认(0否1是)")
    private Long isConfirm;

    /** 确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date confirmTime;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long createId;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 备注是否关闭 */
    @Excel(name = "备注是否关闭")
    private Long flag;

    /** 平台(1PC2移动端) */
    @Excel(name = "平台(1PC2移动端)")
    private Long platform;

    public void setRestbreakId(Long restbreakId) 
    {
        this.restbreakId = restbreakId;
    }

    public Long getRestbreakId() 
    {
        return restbreakId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setRestbreakYear(Long restbreakYear) 
    {
        this.restbreakYear = restbreakYear;
    }

    public Long getRestbreakYear() 
    {
        return restbreakYear;
    }
    public void setRestbreakMonth(Long restbreakMonth) 
    {
        this.restbreakMonth = restbreakMonth;
    }

    public Long getRestbreakMonth() 
    {
        return restbreakMonth;
    }
    public void setIsConfirm(Long isConfirm) 
    {
        this.isConfirm = isConfirm;
    }

    public Long getIsConfirm() 
    {
        return isConfirm;
    }
    public void setConfirmTime(Date confirmTime) 
    {
        this.confirmTime = confirmTime;
    }

    public Date getConfirmTime() 
    {
        return confirmTime;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setFlag(Long flag) 
    {
        this.flag = flag;
    }

    public Long getFlag() 
    {
        return flag;
    }
    public void setPlatform(Long platform) 
    {
        this.platform = platform;
    }

    public Long getPlatform() 
    {
        return platform;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("restbreakId", getRestbreakId())
            .append("projectId", getProjectId())
            .append("restbreakYear", getRestbreakYear())
            .append("restbreakMonth", getRestbreakMonth())
            .append("isConfirm", getIsConfirm())
            .append("confirmTime", getConfirmTime())
            .append("createId", getCreateId())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("flag", getFlag())
            .append("platform", getPlatform())
            .toString();
    }
}
